package com.example.three.Service.RecommedGoodService;

import com.example.three.DO.RecommedGood;
import com.example.three.DO.SysOfficeProd;
import com.example.three.Mapper.RecommedGoodMapper.RecommedMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class RecommedServiceImpl implements  RecommedService{

    @Resource
    private RecommedMapper recommedMapper;
    @Override
    public List<RecommedGood> recommedfindBy() {
        return recommedMapper.recommedfindBy();
    }

    @Override
    public List<RecommedGood> recommedfindselect(String prod_name){
        return recommedMapper.recommedfindselect(prod_name);
    }


    @Override
    public int recommeddelete(String goodId) {
        return recommedMapper.recommeddelete(goodId);
    }

    @Override
    public int addrecommed(String goodId, String goodName, String goodType, String recommed, double goodPrice, String goodLink) {
        return recommedMapper.addrecommed(goodId,goodName,goodType,recommed,goodPrice,goodLink);
    }
}
